public class Test02{
    public static void main(String[] args){
        //创建Dog类对象
        Dog d = new Dog();
        d.setColor("yellow");
        d.setAge(2);
        d.setName("小黄");
        d.show();
        d.showAge(30);
        System.out.println("------------");
        d.showAge();
    }
}